<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<form id="deptForm">
<input type="hidden" name="id" value="${dept.id }"/>
<div class="form-item required">
	<label for="">部门名称</label>
	<input value="${dept.name }" data-options="required:true" type="text" class="easyui-textbox" name="name"/>
</div>
<div class="form-item">
	<label for="">部门经理</label>
	<select name="deptManager" data-options="panelHeight:'auto',editable:false" class="easyui-combobox" style="width: 202px;">
		<c:if test="${dept.id==null}">
			<c:forEach items="${emp}" var="emp">
					<option  value="${emp.name}" >${emp.name}</option>
			</c:forEach>
		</c:if>
		<c:if test="${dept.id !=null}">
			<c:forEach items="${e}" var="e">
					<option  value="${e.name}" ${e.name==dept.deptManager ? 'selected' : ''}  >${e.name}</option>
			</c:forEach>
		</c:if>
	</select>
</div>
<div class="form-item">
		<label for="" style="position: relative;bottom: 25px;">备注</label>
		<textarea class="easyui-textbox" data-options="multiline:true" name="remark"  style="width: 200px;height:65px;border-radius: 5px;">${dept.remark}</textarea>
</div>
</form>
